package com.scalar.forecast.columnDisplay.actionCommands;

import com.scalar.forecast.commons.Constants;
import com.scalar.forecast.actionCommands.ActionCommand;

/**
 * Returns the Action Command Instance based on the action value passed
 *
 * Created by Veeru. 
 * Date: Feb 16, 2005
 * Time: 11:00:23 AM 
 */

public class SearchMetaDataActionCommandFactory implements Constants {

    public static ActionCommand getActionCommand( String action ) {

        if ( ACTION_EDIT.equalsIgnoreCase( action ) ) {
            return new SearchMetaDataEditCommand();
        }
        if ( ACTION_SAVE.equalsIgnoreCase( action ) ) {
            return new SearchMetaDataSaveCommand();
        }
        return null;
    }

}
